import { axiosInstance } from '@/http';
import { IRoleListRequest, IRoleListResponse } from './type';
import { systemRole } from '@/model/api/system';

/**
 * @description: 角色列表查询
 * @param {IRoleListRequest} 参数
 * @returns {Promise}
 */
export const apiRolePageList = (
  params: IRoleListRequest
): Promise<IRoleListResponse> =>
  axiosInstance.post(systemRole.pageList, params);
